package me.raih.mapper;

import me.raih.pojo.po.Sales;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author Raih
 * @Time 2020/12/29 12:29
 *
 * 售货员管理
 */
@Mapper
@Repository
public interface SalesMapper {

    Sales findSalesByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

    Sales findSalesByUsername(@Param("username") String salesName);

    int updateSales(Sales sales);

    int findSalesNumber();

    int findTodaySalesNumber();

    int findYesterdaySalesNumber();

    int findCurrMonthSalesNumber();

    int findCurrWeekSalesNumber();

    List<Sales> findAllSales();

    int needYourNo();

    int insertSales(Sales sales);

    int deleteSales(@Param("username")String username);
}
